package org.pay.union.param.resp;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/***
 * @author Administrator
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("被扫返回")
public class UnifiedTradeMicropayResp extends BaseQueryResp {
    /**
     * 查询判断
     * 用来判断是否需要调用查询接口，值为Y时需要，值为N时不需要
     */
    @ApiModelProperty("用来判断是否需要调用查询接口，值为Y时需要，值为N时不需要")
    private String need_query;

    public boolean getNeedQuery() {
        return StrUtil.equals(need_query, "Y");
    }
}
